package com.qf.openapi.web.master.dao;

import com.qf.openapi.web.master.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


public interface UserDao {
    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    public User getUserByID(@Param("id") Integer id);

    /**
     * 根据用户id插入一个用户
     * @param user
     * @return
     */
    public void updateUser(User user);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    public User getUserByName(@Param("name") String username);

}
